using System;
using System.Collections.Generic;
using System.Text;

namespace DDW
{
	public class UnaryCastExpression : UnaryExpression
	{
		public UnaryCastExpression()
		{
		}
		public UnaryCastExpression(IType type, ExpressionNode child)
		{
			this.type = type;
			this.child = child;
		}
		private IType type;
		public IType Type
		{
			get { return type; }
			set { type = value; }
		}

		public override void ToSource(StringBuilder sb)
		{
			sb.Append("(");
			type.ToSource(sb);
			sb.Append(")");
			child.ToSource(sb);
		}

	}
}

